de.ueberdosis.mp3info.id3v2
Class FrameTSIZ
java.lang.Object
|
+--de.ueberdosis.mp3info.id3v2.ID3V2Frame
|
+--de.ueberdosis.mp3info.id3v2.FrameT
|
+--de.ueberdosis.mp3info.id3v2.FrameTSIZ
- All Implemented Interfaces:
- Defines
- public class FrameTSIZ
- extends FrameT
Size frame
The 'Size' frame contains the size of the audiofile in bytes, excluding
the ID3v2 tag, represented as a numeric string.
Constructor Summary |
FrameTSIZ(de.ueberdosis.mp3info.id3v2.ID3V2Frame frm,
de.ueberdosis.mp3info.id3v2.DataSource ds)
|
Method Summary |
boolean |
canDisplay()
Informs if the frame can create a component to display its contents
To be overwritten by subclasses |
boolean |
canEdit()
Informs if the frame can create a component to edit its contents
To be overwritten by subclasses |
de.ueberdosis.mp3info.gui.Id3JPanel |
createJPanel(boolean edit,
boolean selfupdate)
Creates a JPanel to display or edit the contents of the frame. |
int |
deprecatedSince()
Informs since which version of ID3V2 this Frame has become illegal
Only major versions are supported. |
java.lang.String |
getLongName()
|
int |
legalSince()
Informs since which version of ID3V2 this Frame is legal
Only major versions are supported (eg. |
java.lang.String |
toString()
|
Methods inherited from class de.ueberdosis.mp3info.id3v2.ID3V2Frame |
createPanel, equals, getDataLengthIndicator, getFileAlterPreservation, getFrameID, getSize, getTagAlterPreservation, getUnsynchronisation, hasGroupingIdentity, isAltered, isCompressed, isEncrypted, isReadOnly, isValid, toByteArray |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FrameTSIZ
public FrameTSIZ(de.ueberdosis.mp3info.id3v2.ID3V2Frame frm,
de.ueberdosis.mp3info.id3v2.DataSource ds)
throws SeekPastEndException
legalSince
public int legalSince()
- Description copied from class:
ID3V2Frame
- Informs since which version of ID3V2 this Frame is legal
Only major versions are supported (eg. 4 stands for ID3 v 2.4.0)
- Overrides:
legalSince
in class ID3V2Frame
- Returns:
- a number between 0 and (currently) 4. -1 means the actual
frame didn't overwrite the method.
deprecatedSince
public int deprecatedSince()
- Description copied from class:
ID3V2Frame
- Informs since which version of ID3V2 this Frame has become illegal
Only major versions are supported.
- Overrides:
deprecatedSince
in class ID3V2Frame
- Returns:
- a number between -1 and (currently) 4 denoting the first
version that does NOT support this frame anymore. -1 (in combination
with a sane return of legalSince ()) means this frame is not
deprecated.
getLongName
public java.lang.String getLongName()
- Overrides:
getLongName
in class FrameT
toString
public java.lang.String toString()
- Overrides:
toString
in class FrameT
canDisplay
public boolean canDisplay()
- Description copied from class:
ID3V2Frame
- Informs if the frame can create a component to display its contents
To be overwritten by subclasses
- Overrides:
canDisplay
in class ID3V2Frame
canEdit
public boolean canEdit()
- Description copied from class:
ID3V2Frame
- Informs if the frame can create a component to edit its contents
To be overwritten by subclasses
- Overrides:
canEdit
in class ID3V2Frame
createJPanel
public de.ueberdosis.mp3info.gui.Id3JPanel createJPanel(boolean edit,
boolean selfupdate)
- Description copied from class:
ID3V2Frame
- Creates a JPanel to display or edit the contents of the frame.
To be overwritten by subclasses.
The results of canDisplay / canEdit are only binding for this
method (ie. for JPanels). AWT-Panels may or may not be
implemented.
- Overrides:
createJPanel
in class ID3V2Frame
- Parameters:
edit
- switches between display- (false) and edit-mode (true)selfupdate
- switches if the created component takes care of
updating its data or not. Generally this means that the component
carries its own update-button.
Of course, selfupdate is useless without edit set to true.
- Returns:
- a JPanel that can be used to display or edit the contents